Environment
Domain: claritysystems.work → Cloudflare Pages → repo iamanoob2024/claritysystems-lobby All source files on Mac at /Users/mac/Desktop/claritysystems-lobby/ Cloudflare Pages watches the repo and auto-deploys on every push to main No local Wrangler — Mac is OS X 10, too old. All Workers deploy via GitHub Actions Node v20.20.2, npm v10.8.2, git v2.24.3
Workers
cac-leads → lead capture → Google Sheet (1DJHfOWVR870GSW9gkM3O5JgqYp4_aEYWfXNKHhsPd-s) via Apps Script → tabs per course cac-corporate-enquiry → corporate enquiry → needs full automation build (see below) Both Workers: secrets TELEGRAM_BOT_TOKEN + TELEGRAM_CHAT_ID (set on cac-corporate-enquiry, needs adding to cac-leads) Email via Resend
Big picture — what exists and what's next
DONE (enquiry flow)
NEXT: Stripe payment flow
This is a separate trigger. When a client pays via Stripe, Stripe fires a webhook to a Worker (either the same Worker on a /stripe-webhook route, or a new Worker). That webhook:
payment_intent.succeeded or checkout.session.completed eventtemplate-course-schedule.html from R2day1_date and day2_date)trainer_profile.pdf from R2proformas/ folder where it was saved)Dependencies you need before building Stripe flow:
company_name, email, tentative_date, pax, venue, hrdc_optionSTRIPE_WEBHOOK_SECRETSTRIPE_SECRET_KEYproformas/ are retrievable (they are — Worker already does env.ASSETS.put(...))What needs to be built:
/stripe-webhook route in the Worker (or new Worker)The cleanest sequence when you're ready:
wrangler secret put/stripe-webhook route to existing WorkerFor next session — state to remember:
https://cac-corporate-enquiry.clarityawarenesscoaching.workers.dev/cac-assets, public URL prefix: https://pub-1910845bdea34f268e2eacab46e246ed.r2.dev/0ed03de63f354acaa853500c3ee3473c, binding: CAC_KVtp:001 → ABC Training Sdn Bhd, Maybank, contact: enquiries@abctraining.comDB, tables: contacts, enquiries, interactionscourses@claritysystems.workiamanoob2024/claritysystems-lobby